import Vue from 'vue'
import Router from 'vue-router'
import Main from '@/components/common/Main'
import Left from '@/components/common/left'
import Header from '@/components/common/header'
import Error from '@/components/common/404'
import VueResource from 'vue-resource'

Vue.use(VueResource);
Vue.use(Router)

export default new Router({
	routes: [{
			path: '/main',
			components: {
				header: Header,
				left: Left,
				main: Main
			}
		},

		{
			path: '/404',
			component: Header,
		},
		{
			path: '/',
			redirect: {
				path: '/main'
			}
		}
		
	],
	'mode': 'history'
})